package com.sunspring.zdcall;

import com.sunspring.zdcall.datasource.DynamicDataSourceRegister;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@Import(DynamicDataSourceRegister.class)
@MapperScan({"com.sunspring.zdcall.mapper.master","com.sunspring.zdcall.mapper.slave"})
@EnableAsync
public class ZdcallApplication {

	public static void main(String[] args) {
		SpringApplication.run(ZdcallApplication.class, args);
	}

}

